package com.hexb.smh.entity.param.account;

import com.hexb.core.model.enums.OrderType;
import com.hexb.smh.entity.enums.AccountSortKey;
import com.hexb.smh.entity.enums.RoleType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

/**
 * @author : hexb
 */
@Data
public class AccountQueryParam {

    @ApiModelProperty("搜索关键字")
    @Size(max = 50)
    private String searchKey;

    @ApiModelProperty("可排序字段")
    private AccountSortKey sortKey;

    @ApiModelProperty("排序方式")
    private OrderType sortType;

    @ApiModelProperty(value = "帐号类型", hidden = true)
    private RoleType role;

    @ApiModelProperty(value = "是否可用")
    private Boolean enabled;
}
